import request from '@/utils/request'

// 查询财务付款审批列表
export function listOaPayApproval(query) {
  return request({
    url: '/module/oaPayApproval/list',
    method: 'get',
    params: query
  })
}

// 查询财务付款审批详细
export function getOaPayApproval(id) {
  return request({
    url: '/module/oaPayApproval/' + id,
    method: 'get'
  })
}

// 新增财务付款审批
export function addOaPayApproval(data) {
  return request({
    url: '/module/oaPayApproval',
    method: 'post',
    data: data
  })
}

// 修改财务付款审批
export function updateOaPayApproval(data) {
  return request({
    url: '/module/oaPayApproval',
    method: 'put',
    data: data
  })
}

// 删除财务付款审批
export function delOaPayApproval(id) {
  return request({
    url: '/module/oaPayApproval/' + id,
    method: 'delete'
  })
}
